package com.mxchip.livestarmobile.mobile.rest

import androidx.lifecycle.LiveData
import retrofit2.http.*

interface LuxxAPI {

    @GET("mobile_user/token")
    fun mobileUserToken(@Query("mobileNumber") mobileNumber: String, @Query("ttl") ttl: Int): LiveData<ApiResponse<TokenResp>>

    @GET("{type}/token")
    fun userToken(@Path("type") type: String, @QueryMap map: Map<String, String>, @Query("ttl") ttl: Int): LiveData<ApiResponse<TokenResp>>
}

data class TokenResp(val token: String, val id: String, val number: String, val roomId: String)
